package Test1223;

public class Test02 {
    public static void main(String[] args) {

        // 打印5位数各个位的数字
        int value = 12345;
int t1=value/10000;
int t2=(value%10000)/1000;
int t3=(value%1000)/100;
int t4=(value%100)/10;
int t5=value%10;
System.out.println(t1);
        System.out.println(t2);
        System.out.println(t3);
        System.out.println(t4);
        System.out.println(t5);



    }
}
